{inc:header}
<div id="bodyLeft">
    <!--循环开始-->
    <!-- $articles AS $atl -->
    <div class="postList" id="post-{$atl['id']}">
        <h2><!-- IF[$atl['orders']] -->[置顶]<!-- END --><a title="{$atl['name']}" href="{$atl['staticurl']}">{$atl['name']}</a></h2>
        <!-- IF[!$atl['orders']] --><div class="listEntry">{run:}echo Base::cutStr($atl['content'],360){/run}</div><!-- END -->
        <div class="listDetal">
            发布时间：{run:}echo date("Y-m-d",$atl['times']);{/run}<span></span>
            类别：<a href="{$cats[$atl['cat']]['staticurl']}">{$cats[$atl['cat']]['name']}</a><span></span>
            阅读：{$atl['views']}<span></span>
            评论：{$atl['cmtcount']}<span></span>
            标签：{run:}$tagarray=explode(',',$atl['tags']);{/run}<!-- $tagarray AS $tag --><a href="{weburl}?tag={run:}echo urlencode($tag);{/run}">{tag}</a> <!-- END --> 
        </div>
    </div>
    <!-- END -->  
    <!-- 用于判断提示检测的方法$_i==0 -->  
    <!-- IF[$_i==0] -->  
    <font color="#800000">抱歉，系统内没有文章!</font>  
    <!-- END --> 
    <!--循环结束-->

    <div class="navigation">
        <!-- if($page>1) --><div class="floatLeft"><a href="{$weburl}?p={$uppage}">&laquo; 上一页</a></div><!-- end -->
        <!-- if($downpage!=$page) --><div class="floatRight"><a href="{$weburl}?p={$downpage}">下一页 &raquo;</a></div><!-- end -->
    </div>
    
    <!-- IF[$_i!=0] -->
    <ul class=" pagination pagination-blue">
        <a <!-- if(($page==0) || ($page==1)) -->disabled<!-- end --> class="pure-button" <!-- if(($page!=0) && ($page!=1)) -->href="{$weburl}?p={$uppage}"<!-- end --> >&laquo;</a>
        <!-- for($i=1;$i<$pagenum+1;$i++) -->
        <a id="page{$i}" href="{$weburl}?p={$i}">{$i}</a>
        <!-- end -->
        <a <!-- if($downpage==$page) -->disabled<!-- end --> class="pure-button" <!-- if($downpage!=$page) -->href="{$weburl}?p={$downpage}"<!-- end -->>&raquo;</a>
    </ul>
    <script>
        thispage = "{$_GET['p']}";
        if(thispage == "0" || thispage == "") {thispage = "1"}
        $(function(){
            $("#page"+thispage).addClass("active");
        });
    </script>
    <!-- END -->
</div>
{inc:sidebar}
<div class="clear"></div>
{inc:footer}